#ifndef		__SUBWINWARNING__
#define		__SUBWINWARNING__

#include	<ncurses.h>

#include	"AWindow.hpp"
#include	"ContentFile.hpp"
#include	"ScrollTextWarning.hpp"

class	SubWinWarning : public AWindow
{
public:
  SubWinWarning(unsigned int heightPercentage, unsigned int widthPercentage, WINDOW *winCode);
  ~SubWinWarning();
  void		setContentWin(const char *name_file, int size);
  virtual void	update(bool focus);
  virtual void	checkEvent(int event);
private:
  ContentFile		*_fileTree;
  ScrollTextWarning	*_scrollText;
};

#endif
